package com.rgs.se.concurrent.atomic;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.atomic.AtomicStampedReference;

/**
 * @author Ren Gaoshuai
 * @ClassName MyAtomicInteger
 * @Description TODO
 * @date 2022-02-27 14:30
 **/
public class MyAtomicInteger {

    private AtomicInteger atomicI = new AtomicInteger(0);
    //解决ABA问题的原子类
   // private AtomicStampedReference atomicS = new AtomicStampedReference();

    //解决只能一个共享变量的修改
    //  private AtomicReference atomicR = new AtomicReference();


}
